require('./page.css');
var UE = require('UE');
var editor = UE.getEditor('editor', {
    initialFrameWidth: 950,
    initialFrameHeight: 500,
    autoClearinitialContent: true,
    toolbars: [
        ['undo', 'redo', '|', 'fontsize', 'blockquote', 'horizontal', '|', 'removeformat', 'formatmatch', 'link', 'unlink'],
        ['bold', 'italic', 'underline', 'forecolor', 'backcolor', '|', 'indent', '|', 'justifyleft', 'justifycenter', 'justifyright', 'justifyjustify', '|', 'rowspacingtop', 'rowspacingbottom', 'lineheight', '|', 'insertorderedlist', 'insertunorderedlist', '|', 'imagenone', 'imageleft', 'imageright', 'imagecenter']
    ],
    labelMap: {
        music: '音频'
    }
}).ready(function() {
    //this是当前创建的编辑器实例
    this.setContent('从这里开始写正文')
});
avalon.define({
    $id: 'mc_edit',
    f_editor: function(e, type) {
        editor.getDialog(type).open();
    }
})